// 本模块应适用所用应用
(function(d) {
  
  const {console:out,$cfgs} = d;
  
  if($cfgs){
    out && out.warn("$cfgs extits!", $cfgs); 
  }
  
  /* 不同应用需修改的部分 
  ==>> **/
  const appGroup = 'zz'
  const appName = 'geva'
  const appTitle = '全球环境'
  const appid = '6CB1BDF01FBD0B17'; // uuid16, 全生命周期
  const version = '2025042501'
  const device = 'c' //区分网页端和app: c、m、h
  const tkkey = `zz.aac.2024092001`; //token storage key, 用于全站授权
  
  const srvInfo = {
    url: 'http://www.zzgis.com',
    port: '4801',
  };
  /* <<== 不同应用需修改的部分 **/
  
  //storage key
  const appkey = `${appGroup}.${appName}.${device}.${version}`
  
  const app = {
    id: appid, 
    name: `${appGroup}-${appName}`,
    version,
    device,
    sgn: appkey
  }
  
  const srv = {
    url: srvInfo.url,
    base: srvInfo.url,
    cdn: `${srvInfo.url}/cdn`,
    root: `${srvInfo.url}:${srvInfo.port}`,
    api: `${srvInfo.url}:${srvInfo.port}/zz`, // api server
  }
  
  d.$cfgs = {
    
    title: appTitle,
    
    app,

    appkey,
    tkkey,
    
    srv,
    aac: "aa",
    
    error: true,
    warn: true,
    debug: true,
    log: true,
  }
  
  out && out.debug(d.$cfgs); 
  
})(window)